package cate.game.role.show.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBlog;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;


@ClientMsg(title = "修改名字的 の 返回")
public class ModifyNameResp implements MsgOutput {


    @NoteField("名字")
    public String name;

    @NoteField("修改名字次数")
    public int modifyNameTime;

    public ModifyNameResp() {
    }

    public ModifyNameResp(Role role) {
        this.name = role.getBase().name;
        this.modifyNameTime = role.getSystem().modifyNameTime;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBlog.MODIFY_NAME_RESP;
    }
}
